xl: improve return and exit codes of parse related functions
authorHarmandeep Kaur <write.harmandeep@gmail.com>
Wed, 28 Oct 2015 02:26:24 +0000 (07:56 +0530)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 3 Nov 2015 17:03:04 +0000 (17:03 +0000)
commit8d05834df2612b8dfce93a0afd7425971c30143b
treeeb521c43524f134c8d1aadac6b67ba0e761c6b38
parent1365cdb6debc842be503d990c2c182056edcc57b
xl: improve return and exit codes of parse related functions

Turning  parsing related functions exit codes towards using the
EXIT_[SUCCESS|FAILURE] constants, instead of instead of arbitrary numbers
or libxl return codes.
        - for main_*: arbitrary -> EXIT_SUCCESS|EXIT_FAILURE.
        - for internal fucntion: arbitrary -> 0/1.

Don't touch parse_config_data() which is big enough to deserve its own patch.

Signed-off-by: Harmandeep Kaur <write.harmandeep@gmail.com>
Reviewed-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/xl_cmdimpl.c